export default {
  dbs: 'mongodb://127.0.0.1:27017/student',
  redis: {
    get host () {
      return '127.0.0.1'
    },
    get port () {
      return 6379
    }
  },
  smtp: {
    get host () {
      return 'smtp.163.com'
    },
    get user () {
      return 'chengranran1994@163.com'
    },
    get pass () { // 从网易邮箱账户里设置的密码
      return 'chengranran1994'
      // return '521fulong1314'
    },
    get code () { // 获取验证码
      return () => {
        return Math.random().toString(16).slice(2, 6).toUpperCase()
      }
    },
    get expire () { // 验证码过期时间
      return () => {
        return new Date().getTime() + 60 * 60 * 1000
      }
    }
  }
}
